package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务数据库对象 hg_database_info
 *
 * @author chenming
 * @date 2024-10-16
 */
public class DatabaseInfo
{
    private static final long serialVersionUID = 1L;

    /** 数据库id */
    @TableId("database_id")
    private Long databaseId;

    /** 数据库名称 */
    @Excel(name = "数据库名称")
    private String dbName;

    /** 数据库配置 */
    @Excel(name = "数据库配置")
    private String dbConfig;

    /** 数据库类型 */
    @Excel(name = "数据库类型")
    private String dbType;

    /** 连接状态 */
    @Excel(name = "连接状态")
    private String dbStatus;

    /** 描述 */
    @Excel(name = "描述")
    private String dbDesc;

    public void setDatabaseId(Long databaseId)
    {
        this.databaseId = databaseId;
    }

    public Long getDatabaseId()
    {
        return databaseId;
    }
    public void setDbName(String dbName)
    {
        this.dbName = dbName;
    }

    public String getDbName()
    {
        return dbName;
    }
    public void setDbConfig(String dbConfig)
    {
        this.dbConfig = dbConfig;
    }

    public String getDbConfig()
    {
        return dbConfig;
    }
    public void setDbType(String dbType)
    {
        this.dbType = dbType;
    }

    public String getDbType()
    {
        return dbType;
    }
    public void setDbStatus(String dbStatus)
    {
        this.dbStatus = dbStatus;
    }

    public String getDbStatus()
    {
        return dbStatus;
    }
    public void setDbDesc(String dbDesc)
    {
        this.dbDesc = dbDesc;
    }

    public String getDbDesc()
    {
        return dbDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("databaseId", getDatabaseId())
            .append("dbName", getDbName())
            .append("dbConfig", getDbConfig())
            .append("dbType", getDbType())
            .append("dbStatus", getDbStatus())
            .append("dbDesc", getDbDesc())
            .toString();
    }
}
